<?php
/**
 * 众安健康测评
 */

namespace App\Services\Algo;

use App\Interf\Calculable;
use TestingItemService;

class CustomerQuestionnaireTestingAlgo extends BaseTestingAlgo implements Calculable
{
    public $allAnswers ;
    public function __construct($tid, $answerStr, $typeFourExpress = null)
    {
        parent::__construct($tid, $answerStr);
    }

    public function calculate()
    {
        return $this->entrance($this->tid, $this->answers);

    }

    /**
     * 将拼装后的答案转换成字符串
     * @return string
     */
    public function resultToStr(){
        return $this->arrToStr($this->answers);
    }


    /**
     * @param $tid
     * @param $answers
     * @return float|null
     */
    protected function entrance($tid,$answers){
        $totalScore =null;
        return $totalScore;
    }



}